﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/NestedMasterPage1.master" Inherits="System.Web.Mvc.ViewPage<DrugStore.Helper.PaginateList<DrugStore.Models.Product>>" %>

<asp:Content ID="main" ContentPlaceHolderID="mainContent" runat="server">    
    <div class="main-header">       
        <h2>Sản phẩm mới</h2>
    </div>    
    <div style="width:514px;padding-left:7px;">
        <img src="../../Content/images/trad_111.gif" />
    </div>    
    <div class="border-main">
    <%foreach(DrugStore.Models.Product p in Model) 
      {%>            
        <div class="feat_prod_box">            
            	<div class="prod_img"><a href="#" target="_blank"><img src="../../Content/productImages/<%:p.ImagePath %>" alt="errors" title="Thuoc gia truyen" border="0"/></a></div>                                              	                     
                </div>    
            <div class="clear"></div>
         </div>
      <%} %>                  
      <div style="margin-left:350px;margin-bottom:25px;position:relative; z-index:100;font-weight:bold;font-style:italic">
           <%if (Model.HasPreviousPage)
             { %>
             <%:Html.RouteLink("Trang trước", "Product", new { page =( Model.PageIndex - 1) }) %>
           <%} %>
           <%if (Model.HasNextPage)
             { %>
             <%:Html.RouteLink("Trang sau", "Product", new { page = (Model.PageIndex + 1) }) %>
           <%} %>
      </div>   
      <div class="clear"></div>
    </div>                                                                        
 </asp:Content>